// components/home/homeBanner.js
Component({
  options:{ styleIsolation:"apply-shared"  },
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    imgPath: '/images',
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onMjl(e) {
      wx.navigateTo({
        url: '/pages/home/ljmjl',
      })
    },
    chengZhang() {
      // wx.showToast({
      //   title: 'chengZhang',
      // })
      wx.navigateTo({
        url: '/pages/home/ljcz',
      })
    },
    chengziyou() {
      wx.navigateTo({
        url: '/pages/home/ljzy',
      })
    }

  },
  lifetimes: {
    attached() {
      // console.log("homeBanner attached")
      const util=require("../../utils/util");
      this.setData({
        imgPath: util.getImgPath()
      })
     console.log("this.data.imgPath", this.data.imgPath)
    },
    created() {

    }
  },
})